package br.com.klis.batendoumabola.client.service;

import java.util.ArrayList;

import br.com.klis.batendoumabola.client.exception.DaoException;
import br.com.klis.batendoumabola.client.exception.NotLoggedInException;
import br.com.klis.batendoumabola.shared.Pelada;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("pelada")
public interface PeladaService extends RemoteService {
  //public Pelada incluir(Pelada pelada) throws NotLoggedInException;
  //public void excluir(Pelada pelada) throws NotLoggedInException;
  //public Pelada[] getPeladas() throws NotLoggedInException;
  public ArrayList<Pelada> pesquisarPeladas(Pelada pelada);
  
  //public Pelada addPelada(Pelada pelada)throws NotLoggedInException;
  public Boolean deletePelada(Pelada pelada) throws NotLoggedInException; 
  public ArrayList<Pelada> deletePeladas(ArrayList<Pelada> peladas) throws NotLoggedInException;
  public ArrayList<Pelada> getPeladasByLoggedUser() throws NotLoggedInException;
  public ArrayList<Pelada> getAllPeladas();
  public Boolean existeBateBolaDoUsuario(Pelada pelada) throws NotLoggedInException, DaoException;
  public Pelada getPeladaById(String id);
  public Pelada savePelada(Pelada pelada) throws NotLoggedInException, DaoException;
  public Boolean atualizarDadosAdm() throws NotLoggedInException, DaoException;
}